<?php 
//配置数据
$sql = "SELECT * FROM wd_config WHERE config_id=1";
$logo = $db->getOne($sql);

$sql = "SELECT link_name,link_url FROM wd_link ORDER BY link_id ASC";
$link = $db->getAll($sql);


//导航
$sql = "SELECT nav_name,nav_url FROM wd_nav";
$nav = $db->getAll($sql);
$nav_count = count($nav);